import { http } from '@/utils/https'
/**
 * 填写订单-获取预付订单
 */
export const getMemberOrderPreAPI = () => {
  return http({
    method: 'GET',
    url: '/member/order/pre',
  })
}

export const getMemberOrderPreNowAPI = (data: {
  skuId: string
  count: string
  addressId?: string
}) => {
  return http({
    method: 'GET',
    url: '/member/order/pre/now',
    data,
  })
}

export const postMemberOrderAPI = (data: any) => {
  return http({
    method: 'POST',
    url: '/member/order',
    data,
  })
}
export const getMemberOrderByIdAPI = (id: string) => {
  return http({
    method: 'GET',
    url: `/member/order/${id}`,
  })
}
